package com.example.zkweixiu.app.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.example.zkweixiu.app.R;
import com.vondear.rxtool.RxActivityTool;
import com.yanzhenjie.sofia.Sofia;

public class ChangePassword1Activity extends AppCompatActivity implements View.OnClickListener {
    private Intent intent;
    private RelativeLayout rl_change;
    private RelativeLayout rl_change0;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_change_password1);
        Sofia.with(ChangePassword1Activity.this).statusBarDarkFont().statusBarBackground(Color.parseColor("#FFFFFF"));

        rl_change  = findViewById(R.id.rl_change);
        rl_change0 = findViewById(R.id.rl_change0);
        ImageView iv_fanhui = findViewById(R.id.iv_fanhui);
        View iv_fanhui2 = findViewById(R.id.iv_fanhui2);

        iv_fanhui.setOnClickListener(this);
        iv_fanhui2.setOnClickListener(this);

        rl_change.setOnClickListener(this); //记得原密码
        rl_change0.setOnClickListener(this); // 记得手机号


    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.rl_change:
                intent = new Intent(this, ChangePassword2Activity.class);// 密码修改 - 验证原密码
                startActivity(intent);
                break;
            case R.id.iv_fanhui:
                finish();
                break;
            case R.id.iv_fanhui2:
                finish();
                break;
            case R.id.rl_change0:
                intent = new Intent(this, ChangePassword3Activity.class);// 密码修改 - 验证手机号
                startActivity(intent);
                break;
        }
    }
}
